package com.baizhi.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

/**
 * @author chenjf
 * @email 3442748294@qq.com
 * @date 2021-08-25 10:51:44
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
@TableName("yx_feedback")
public class Feedback implements Serializable {

	@TableId(type = IdType.ASSIGN_ID,value = "id")
	private Long id;

	@TableField(value = "title")
	private String title;

	@TableField(value = "content")
	private String content;

	@TableField(value = "user_id")
	private Long userId;

	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@TableField(value = "create_time")
	private Date createTime;

}
